package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.GradeBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.Mapping;

import java.util.Set;

@Mapper
public interface IGradeMapper extends BaseMapper<GradeBean> {

    Set<GradeBean> findByUser(Integer userId);

    Set<GradeBean> findByRole(Integer roleId);

    Set<GradeBean> findByRoleIdArray(Integer[] roles);
}
